package com.qs.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 首页热卖商品数据
 * @author author
 * @since 2023-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class GoodsIndexDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String goodsName;

    private String image;

    private double price;

    /**
     * 商品浏览量
     */
    private Long browse;

    /**
     * 商品销量
     */
    private Long sale;

    /**
     * 商品收藏量
     */
    private Long collectNum;

    /**
     * 商品评论量
     */
    private Long commentNum;
}
